package com.study;

interface IcallBackHelper{
    void callBack(String name);
}

public class 函数学习 {
    public  static  void main(String[] args)
    {
        showName("wahaha", 10, new IcallBackHelper() {
            @Override
            public void callBack(String name) {
                System.out.print(name);
            }
        });
    }
    public  static void showName(String name,int age,IcallBackHelper icallBackHelper)
    {
        icallBackHelper.callBack(name+"年龄"+age);
    }

}
